package com.drcoffee.drcoffeemall.controller;

import com.drcoffee.drcoffeemall.entry.Machine;
import com.drcoffee.drcoffeemall.entry.Result;
import com.drcoffee.drcoffeemall.entry.Video;
import com.drcoffee.drcoffeemall.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 视频资料
 *
 * @author ShiHao Zhou
 */
@RestController
@RequestMapping("/video")
public class VideoController {
    @Autowired
    VideoService videoService;

    /*
     * 查询视频
     * */
    @PostMapping("/getVideo")
    public Result getVideo(@RequestBody Map<String, Object> parMap) {
        return videoService.getVideo(parMap);
    }
}
